package TestDemo;

import org.springframework.stereotype.Component;

@Component
public class StudentBean {
    public int age;
    public String name;

    public StudentBean() {
        this.age = 15;
        this.name = "张三";
    }
    public StudentBean(int age, String name) {
        this.age = age;
        this.name = name;
    }
}
